const routes = [
  {
    path: "/index",
    component: () => import("../views/home/Home.vue"),
  },
  {
    path: "/",
    redirect:"/index"
  },
  {
    path: "/NotFound",
    component: () => import("../views/notfount/NotFound.vue"),
  },
  {
    path: '/home',
    component: () => import( '../views/home/Home.vue')
  },
  {
    path: "/center",
    component: () => import("../views/center/Center.vue"),
  },
  {
    path: "/user-manage/addUser",
    component: () => import("../views/user-manage/UserAdd.vue"),
  },
  {
    path: "/user-manage/userList",
    component: () => import("../views/user-manage/UserList.vue"),
  },
  {
    path: "/product-manage/productAdd",
    component: () => import("../views/product-mange/ProductAdd.vue"),
  },
  {
    path: "/product-manage/productList",
    component: () => import("../views/product-mange/ProductList.vue"),
  },
  {
    path: "/product-manage/productEdit/:id",
    component: () => import("../views/product-mange/ProductEdit.vue"),
  },
  {
    path: "/hots-manage/hotsAdd",
    component: () => import("../views/hots-manage/HotsAdd.vue"),
  },
  {
    path: "/hots-manage/hotsList",
    component: () => import("../views/hots-manage/HotsList.vue"),
  },
  {
    path: "/hots-manage/hotsEdit/:id",
    component: () => import("../views/hots-manage/HotsEdit.vue"),
  },
  {
    path: "/:pathMatch(.*)*",
    component: () => import("../views/notfount/NotFound.vue"),
  }
];

export default routes;
